package cn.stylefeng.guns.modular.school.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 行程信息
 * </p>
 *
 * @author
 * @since 2020-04-11
 */
@Data
@TableName("thesis_trip_info")
public class TripInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 行程名称
     */
    @TableField("name")
    private String name;

    /**
     * 票价
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 座位数
     */
    @TableField("seat_num")
    private Integer seatNum;
    @TableField("workday_num")
    private Integer workdayNum;
    @TableField("holiday_num")
    private Integer holidayNum;
    @TableField("memo")
    private String memo;
    @TableField("need_credit_num")
    private Integer needCreditNum;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getSeatNum() {
        return seatNum;
    }

    public void setSeatNum(Integer seatNum) {
        this.seatNum = seatNum;
    }

    @Override
    public String toString() {
        return "TripInfo{" +
                "id=" + id +
                ", name=" + name +
                ", price=" + price +
                ", seatNum=" + seatNum +
                "}";
    }
}
